package com.fanshilz.flower2025.apps.admin.sysRoute.resp;

import com.mybatisflex.annotation.RelationOneToOne;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class SysRouteTableDetailResp {

    private Long routeId;

    private Integer type;

    private String code;

    private String path;

    private String name;

    private String component;

    private String redirect;

    private Long parentId;

    private Timestamp createTime;

    private Long createUserId;

    private String createUserName;

    private Long updateUserId;

    private Timestamp updateTime;

    private String updateUserName;

    private List<SysRouteTableDetailResp> children;

    @RelationOneToOne(selfField = "routeId", targetTable = "sys_route_meta", targetField = "routeId")
    private SysRouteMetaTableDetailResp meta;

}
